import request from '@/utils/request'

/**
 * @description: 获取入库类型、出库类型清单
 * @param {*} params
 * @return {*}
 */
export function getOrderbillStyle(params) {
  return request({
    url: '/ordbill/style/list',
    params
  })
}

/**
 * @description: 新增入库类型、出库类型
 * @param {*} data
 * @return {*}
 */
export function addOrderbillStyleItem(data) {
  return request({
    url: '/ordbill/style/add',
    method: 'post',
    data
  })
}

/**
 * @description: 更新入库类型、出库类型
 * @param {*} data
 * @return {*}
 */
export function updateOrderbillStyleItem(data) {
  return request({
    url: '/ordbill/style/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除入库类型、出库类型
 * @param {*} data
 * @return {*}
 */
export function deleteOrderbillStyleItem(data) {
  return request({
    url: '/ordbill/style/delete',
    method: 'post',
    data
  })
}
